<template>
  <view class="coupon">
    <coupon-card :type="data.status" :data="data"></coupon-card>
  </view>
</template>

<script>
// 优惠券卡片
import "./index.scss";
import Taro from "@tarojs/taro";
import couponCard from "../../../../components/couponCard/index";
import requset from "../../../../utils/request";

export default {
  components: {
    "coupon-card": couponCard,
  },
  props: ["data"],
  data() {
    return {};
  },
  created() {

  },
  mounted() {
    // this.getList();
    console.log(this.data,'st2222222tus')
  },
  methods: {
    // getList() {

    //   requset("get", "/api/rest/consumer_coupons.htm").then((res) => {
    //     console.log("consumer_coupons", res);
    //   });
    // },
    todetail() {
      console.log(this.data, "ooo");
      //   Taro.navigateTo({
      //     url: `/pages/consumer/rules/index?id=${this.data.id}`,
      //   });
      // `../../pages/HuiShengHuo/ActivityList/ActivityDetail/index?id=${item.srcId}`
    },
  },
};
</script>
